package com.wenhai.spring.validation;

import org.springframework.context.support.StaticMessageSource;

import java.util.Locale;

public class MyMessageSource extends StaticMessageSource {

    public MyMessageSource() {
        this.addMessage("javax.validation.constraints.NotNull.message", Locale.getDefault(), "所有属性不能为空");
    }
}
